package com.question.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.question.entity.Explanation;
@Repository
public interface ExplanationRepository extends PagingAndSortingRepository<Explanation, Long>, JpaSpecificationExecutor<Explanation> {
	@Query(value="from Explanation e where e.num=?1")
	public Explanation findByNum(String num);
}
